export const success = data =>{
  return  {
    code:200,
    data,
    msg:'请求成功'
  }
}

export const error = (code,msg,data) =>{
  return {
    code,
    data,
    msg,
  }
}

export const SQL_ERROR = {
  code:500,
  msg:"数据库异常"
}